package com.cjj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjj.dao.entity.RunnerOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjj.dto.req.AcceptRunnerOrderReqDTO;
import com.cjj.dto.req.CreateRunnerOrderReqDTO;
import com.cjj.dto.req.UpdateByRunnerOrderIdReqDTO;

/**
 * <p>
 * 跑腿订单表 服务类
 * </p>
 *
 * @author admin
 * @since 2025-10-25
 */
public interface RunnerOrderService extends IService<RunnerOrder> {

    void createOrder(CreateRunnerOrderReqDTO createRunnerOrderReqDTO);

    IPage<RunnerOrder> getAvailableOrders(Integer pageNum, Integer pageSize);

    void updateByOrderId(UpdateByRunnerOrderIdReqDTO updateByRunnerOrderIdReqDTO);

    void acceptRunnerOrder(AcceptRunnerOrderReqDTO acceptRunnerOrderReqDTO);

    void completeRunnerOrder(Long orderId);
}
